package com.example.link.controller;

import com.example.link.model.LinkDomainVO;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author qwert
 * @version 1.0.0
 * @create 2025/8/17 22:11
 **/
@RestController
@RequestMapping("/api/link/domain")
@RequiredArgsConstructor
public class DomainController {
    @GetMapping("/get")
    public List<LinkDomainVO> getLinkDomain() {
        return List.of(
                LinkDomainVO.builder().domainId("1").name("默认域名").domain("47.97.26.155").isDefault(true).build(),
                LinkDomainVO.builder().domainId("2").name("test").domain("test.com").isDefault(false).build()
        );
    }
}
